﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ZLCMS.Data.Model;
using ZLCMS.Business.DwzFrame;
using ZLCMS.Business.Util;
using System.Collections.Generic;
using NHibernate;
using ZLCMS.Business;

namespace ZLCMS.Web.SystemManage.Basics
{
    public partial class MenuHelpInfo : System.Web.UI.Page
    {
        protected FrameHelper _framePage;

        protected SysMenuInfo _menuInfo;

        protected void Page_Load(object sender, EventArgs e)
        {
            //初始化DWZ控件
            _framePage = new FrameHelper(this);

            //初始化全局变量值
            InitializeGlobalValue();

            //初始化控件值
            InitializeContent();
        }

        protected void InitializeGlobalValue()
        {
            using (ISession session = DotNet.Common.NHibernateUtil.SessionFactoryHelper.CreateSession())
            {
                try
                {
                    _menuInfo = session.Get<SysMenuInfo>(int.Parse(Request["id"]));

                    if (_menuInfo == null)
                    {
                        throw new Exception("找不到对应信息.");
                    }
                }
                catch (System.Exception ex)
                {
                    _framePage.Alert(new ReturnCode() { statusCode = 300, message = "操作出错-" + ex.Message });
                    return;
                }
            }
        }

        protected void InitializeContent()
        {
            //页面控件数据

            //页面控件值
            if (!IsPostBack)
            {
            }
        }
    }
}
